package edu.predatorwars.client.visualization;

import java.awt.Point;

import edu.predatorwars.shared.models.Terrain;


public class TerrainExt extends Terrain {
	

	Point location;
	
	public TerrainExt(Terrain terrain, int x, int y, boolean traversable, boolean sightBlocked) {
		super(terrain.getTerrainType(), traversable, sightBlocked);
		location = new Point(x,y);
	}
	
	public TerrainExt(Terrain terrain, Point loc, boolean traversable, boolean sightBlocked) {
		super(terrain.getTerrainType(), traversable, sightBlocked);
		location = loc;
	}
	
	public Point getTerrainLocation() {
		return location;
	}
	
	public void setTerrainLocation(Point loc) {
		location = loc;
	}
	
	public void setTerrainLocation(int x, int y) {
		location.x = x;
		location.y = y;
	}
}